<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>{$page['title']}</title>
	<meta http-equiv="x-ua-compatible" content="IE=EmulateIE7" />
	<link href="__PUBLIC__/default/css/global.css" rel="stylesheet" type="text/css" />
	<link href="__PUBLIC__/default/css/cennter.css" rel="stylesheet" type="text/css" />
	<link href="__PUBLIC__/default/css/link.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/default/css/home.css" rel="stylesheet" type="text/css" />
	<link href="__PUBLIC__/default/css/classifieds_list.css" rel="stylesheet" type="text/css" />
	<script src="__PUBLIC__/js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/js/jquery.simplemodal.js"></script>
	<meta name="keywords" content="{$page['keywords']}" />
	<meta name="description" content="{$page['description']|strip_tags}" />
	<script type="text/javascript">
	var HOST		= window.location.host;
	var Per_host	="http://"+HOST;
	var JS_PATH		="../Public/js/";
	var IMG_PATH	="../Public/images/";
	var URL			='__URL__';
	var APP			='__APP__';
	var PUBLIC		='../Public/';
	var REQUEST_URI ='{$_SERVER.REQUEST_URI}';
	</script>
	<script src="__PUBLIC__/js/iic.js" type="text/javascript"></script>
</head>
<body>
<div id="top">
    <div id="header-h">
        <div class="header-left">
            <span>
			<empty name="Think.SESSION.uid">
				{$now} | <a href="__APP__/login/{$tourl}.html">Login</a> / <a href="__APP__/register/{$tourl}.html">Register</a></span>
			<else/>
				 Welcome {@username}!   {$now}  |  <a href="__APP__/Cp/index">Control Panel</a> / <a href="__APP__/Public/logout">Logout</a>
			</empty>
        </div>
        <div class="colorz">
        </div>
    </div>
    <div class="top-content">
        <div class="top-logo">
            <h1><a href="__APP__/select_city.html"><img src="__PUBLIC__/img/logo.jpg" alt="Being Fun China" /></a></h1>
            <div class="top-city">
                <h2><a href="__APP__/select_city/beijing/{:myencode('/clist/'.$info['id'])}/{$info['typename']|str_to_url}.html" class="cid <eq name="cid" value="beijing">on</eq>">Beijing</a></h2>
                <h2><a href="__APP__/select_city/shanghai/{:myencode('/clist/'.$info['id'])}/{$info['typename']|str_to_url}.html" class="cid <eq name="cid" value="shanghai">on</eq>">Shanghai</a></h2>
                <h2><a href="__APP__/select_city/guangzhou/{:myencode('/clist/'.$info['id'])}/{$info['typename']|str_to_url}.html" class="cid <eq name="cid" value="guangzhou">on</eq>">Guangzhou</a></h2>
                <h2><a href="__APP__/select_city/shenzhen/{:myencode('/clist/'.$info['id'])}/{$info['typename']|str_to_url}.html" class="cid <eq name="cid" value="shenzhen">on</eq>">Shenzhen</a></h2>
				<span style="float:left; margin-right:10px; font-size:10px; margin-top:8px;">
					<if condition="cookie('cid')">
						<a href="#" title="Remember my choice"><img src="__PUBLIC__/img/es2.gif" id="remember" class="remember_1" alt="Remember my choice" /></a>
					<else/>
						<a href="#" title="Remember my choice"><img src="__PUBLIC__/img/es.gif" id="remember" class="remember_0" alt="Remember my choice" /></a>
					</if>
					
				</span>
            </div>
			
        </div>
        <div class="clear">
        </div>
        <div class="top-nav">
        	<form action="__APP__/so.html">
            <div class="search" style="background-color:#ffffff; line-height:20px;">
                <input type="text" name="key" style="width:190px; border:none;*border:#ffffff;" /> <input type="image" src="__PUBLIC__/default/images/so.gif" style="margin-top:2px;" />
            </div>
            </form>
            <div class="nav">
                <ul>
                    <li <if condition="$Think.MODULE_NAME=='Index'">class="annv"</if>><a href="/index<if condition="$cid">/{$cid}</if>.html">Home</a></li>
					<li <eq name="Think.MODULE_NAME" value="CityGuide"> class="annv"</eq>><a href="__APP__/cityguide<if condition="$cid">/{$cid}</if>.html">City Guide</a></li>
                    <li <if condition="$Think.MODULE_NAME=='Classifieds'">class="annv"</if>><a href="__APP__/classifieds<if condition="$cid">/{$cid}</if>.html">Classifieds</a></li>
                    <li <eq name="Think.MODULE_NAME" value="Biz"> class="annv"</eq>><a href="__APP__/biz.html">China Fairs</a></li>
					<li <eq name="Think.MODULE_NAME" value="Event"> class="annv"</eq>><a href="__APP__/event<if condition="$cid">/{$cid}</if>.html">Events</a></li>
                    <li <eq name="Think.MODULE_NAME" value="Magazine"> class="annv"</eq>><a href="__APP__/Magazine/index.html">Magazines</a></li>
                    <li <eq name="Think.MODULE_NAME" value="Group"> class="annv"</eq>><a href="__APP__/group.html">Groups</a></li>
                </ul>
            </div>
        </div>
        <div class="bgh"></div>
    </div>
    <div class="clear">
    </div>
</div>

<style type="text/css">
	#simplemodal-overlay {background-color:#000; cursor:wait;}
	#simplemodal-container {height:320px; width:600px; color:#111; background-color:#eee; border:4px solid #444; padding:12px;}
	#simplemodal-container code {background:#141414; border-left:3px solid #65B43D; color:#bbb; display:block; margin-bottom:12px; padding:4px 6px 6px;}
	#simplemodal-container a {color:#ddd;}
	#simplemodal-container a.modalCloseImg {background:url(__PUBLIC__/default/images/x.png) no-repeat; width:25px; height:29px; display:inline; z-index:3200; position:absolute; top:-15px; right:-16px; cursor:pointer;}
	#simplemodal-container #group_content {padding:8px;}
</style>
<div id="main">
    <div class="mian-right">
        <div class="conter-right">
        <div class="advertisement">
        	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="237" height="200">
              <param name="movie" value="/Public/img/group.swf" />
              <param name="quality" value="high" />
              <embed src="/Public/img/group.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="237" height="200"></embed>
      	  </object>
          </div>
            <div class="conter-group">
                <div class="group">Latest Groups</div>
<if condition="$group">
	<volist name="group" id="g">
               <dl class="group-x">
				<dt><a href="__APP__/grps/{$g['id']}/{$g['groupname']|str_to_url}.html"><img src="{$g['pic']|toImg=group}" alt="{$g['groupname']}" /></a></dt>
				<dd>
					<h5><a href="__APP__/grps/{$g['id']}/{$g['groupname']|str_to_url}.html" title="{$g['groupname']}">{$g['groupname']}</a></h5>
					<p>Member:{$g['membernum']}<br/>Topic:{$g['threadnum']}</p>
				</dd>
			</dl>
	</volist>
</if>
             </div>
            <div class="advertisement">

            </div>
            <div style="margin-bottom:10px; text-align:center">
				<script type="text/javascript"><!--
                google_ad_client = "pub-0787067378614221";
                /* 200x200, 10-8-27 cityguide_classifieds_c_r */
                google_ad_slot = "5468157928";
                google_ad_width = 200;
                google_ad_height = 200;
                //-->
                </script>
                <script type="text/javascript"
                src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
            </div>
        </div>
        <div class="mian-center-n">
            <div class="jianbian">
				<span style="float:right; margin-right:10px;">
				<a href="__APP__/Cp/my_post_classifieds.html" target="_blank">+ Post a classified</a></span>
                <a href="/index<if condition="$cid">/{$cid}</if>.html">Home</a> > <a href="__APP__/classifieds<if condition="$cid">/{$cid}</if>.html">{$cityname} Classifieds</a> > 
				<if condition="$reinfo"><a href="__APP__/clist/{$reinfo['id']}<if condition="$cid">/{$cid}</if>/{$reinfo['typename']|str_to_url}.html">{$reinfo['typename']} {$cityname}</a> ></if>
            </div>
            <div class="personals" style="height:75px;">
            	<h1>{$info['typename']}{$cityname}</h1>
                <div class="ctgl">
                <php>
                	$i=0;
                	foreach($ctls as $k=>$v){
                    if($v<5){
                    	$i++;
                        $typeid=empty($_GET['id'])?'1':$_GET['id'];
						if($typeid=='1'&&$_GET['flag']=='f'){
                        echo "<h3>[<a href=\"".__APP__."/featured_classifieds/".$info['id']."/".$k.'.html" title="'.$info['typename'].' in '.$k.'">'.ucwords($k)."</a>]</h3>";
                        }else{
                    	echo "<h3>[<a href=\"".__APP__."/clist/".$info['id']."/".$k.'/'.str_to_url($info['typename']).'.html" title="'.$info['typename'].' in '.$k.'">'.ucwords($k)."</a>]</h3>";
                        }
                        if($i=='5'||$i=='7'){
                        	echo "<br />";
                        }
                     }
                    }
                 </php>
                 <h3 style="float:right; height:20px; padding-top:5px;"><a href="/Arc/show/ename/adv.html" target="_blank" style="height:20px; width:230px; display:block; border:1px solid #999999; color:#FF0000; text-align:center;">Feature your classifieds on homepage</a></h3>
                    <p>{$showpage}</p>
                </div>
            </div>
			<div class="clear"></div>
<if condition="$list">
<volist name="list" id="v">
            <div class="personals-a">
                <div class="list-a">
					<if condition="$v['picurl']">
						<span style="float:right;"><img src="__PUBLIC__/img/img.gif" /></span>
					</if>
                    <h6><img src="__PUBLIC__/default/images/{$i}.gif" alt="{$i}" />
                    <a href="__APP__/clss/{$v['id']}/{$v['title']|str_to_url}.html">{$v['title']}</a></h6>
<if condition="$admin">
					<p class="admin">
						<a href="/Cp/photo/info/{$v['channel']}_{$v['id']}">Add Photos</a> / <a href="/Cp/my_edit_classifieds/info/{$v['channel']}_{$v['id']}">edit</a> / <a href="/Cp/del_arc/info/{$v['channel']}_{$v['id']}/to/{$tourl}/">remove</a> / 
                        <if condition="string2checked('f',$v['flag'],',','1')==1">
                        <a href="/Cp/attr/info/{$v['channel']}_{$v['id']}/clear/f/to/{$tourl}/" title="clear Featured" class="on">Featured</a>
                        <else/>
                        <a href="/Cp/attr/info/{$v['channel']}_{$v['id']}/fld/f/to/{$tourl}/" title="Set Featured">Featured</a>
                        </if>
					</p>
</if>
                    <p>
                        {$v['description']|strip_tags}...<a href="__APP__/clss/{$v['id']}/{$v['title']|str_to_url}.html">[Detail]</a>
                    </p>
                </div>
                <div class="hui-bg">
                    <ul>
                        <li id="1_{$v['channel']}_{$v['id']}" class="user_share">
                            <a href="__URL__/share/xid/{$v['id']}/xtype/{$v['channel']}" target="_blank">Share</a>
                        </li>
                        <li id="2_{$v['channel']}_{$v['id']}" class="user_collection">
                            <a href="#2_{$v['channel']}_{$v['id']}">Save as favorite</a>
                        </li>
                        <li id="3_{$v['channel']}_{$v['id']}" class="user_report">
                            <a href="__APP__/Common/report/aid/{$v['channel']}_{$v['id']}">Report Abuse</a>
                        </li>
						<!--li>{$v['pubdate']|toDate='Y-m-d'}</li-->
                    </ul>
                </div>
            </div>
</volist>
</if>
		 <div class="fanye">
		 	{$showpage_bot}
            </div>
        </div>
    </div>
    <div class="main-left">
        <div class="class_tree">
            <include file="Public:classifieds"/>
        </div>
        <div class="class_tree">
            <include file="Public:cityguide"/>
        </div>
        <div class="left_biz">
        	{$ad['left']}
        </div>
    </div>
</div>
<div id="group_content" style="display:none;">

</div>
<include file="Public:foot" />